package com.zbkj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.bsy.BsyUser;
import com.zbkj.common.model.bsy.EventMsg;
import com.zbkj.common.model.user.User;
import com.zbkj.common.request.*;
import com.zbkj.common.response.*;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 用户表 服务类
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
public interface BsyUserService extends IService<BsyUser> {


    /**
     * 通过mq消息创建实体类并保存到数据库
     * @param eventMessage
     */
    void save(EventMsg eventMessage);

    /**
     * 通过贝视优业务系统调用MQ的方式修改用户
     * @param eventMessage 请求参数
     */
    @Transactional
    void update(EventMsg eventMessage);

    /**
     * 判断贝视优账号是否存在
     * @param request
     */
    BsyUser selectBsyAccount(BindBsyAccountRequest request);

    /**
     * 根据bizIz查找
     * @param bizId
     */
    BsyUser selectBsyUserByBizId(Long bizId);
}
